function save() {
    var name = $("#name").val();
    if (name == '') {
        layer.msg('真实姓名不能为空', {icon: 2,time: 2000});
        return;
    }
    var mobile = $("#mobile").val();
    if (mobile == '') {
        layer.msg('手机号码不能为空', {icon: 2,time: 2000});
        return;
    }
    $.ajax({
        cache: true,
        type: "POST",
        url: "/deliveryman/manage/update",
        data: $('#noCheckDetailForm').serialize(),// 你的formid
        async: false,
        error: function (request) {
            parent.layer.alert("Connection error");
        },
        success: function (data) {
            if (data.code == 0) {
                parent.layer.msg("操作成功");
                parent.reLoad();
                var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
                parent.layer.close(index);
            } else {
                if (data.msg) {
                    parent.layer.alert(data.msg)
                } else {
                    window.location.href = "/";
                }
            }

        }
    });

}